<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>商品详情页</title>
    <link rel="stylesheet" href="/Public/Admin/css/main.css"/>
    <link rel="stylesheet" href="/Public/Admin/css/swiper.min.css"/>
    <link rel="stylesheet" href="/Public/Admin/css/colpack.css"/>
    <link rel="stylesheet" href="/Public/Admin/quilleditor/quill.snow.css"/>
    <style>
        .standalone-container {
            width: 100%;
        }

        .snow-container {
            height: 126px;
        }
    </style>
</head>
<body>
<div class="view-content" style="padding: 0">
    <div class="view-con">
        <div class="AddProducts">
            <ul class="APList">
                <li class="active <?php if($color_display['one'] == 1): ?>Act ActMain<?php endif; ?> jump" alt="1" about="3">
                    <span>基本信息</span>
                    <div class="APListPre">
                        <i>1</i>
                    </div>
                </li>
                <li class="active <?php if($color_display['one'] == 1): ?>Act ActMain<?php endif; ?> jump" alt="2" about="3">
                    <span>商品套餐</span>
                    <div class="APListPre">
                        <i>2</i>
                    </div>
                </li>
                <li class="last active">
                    <span <?php if($color_display['three'] == 1): ?>style="color:#0095d4"<?php endif; ?>>商品详情页</span>
                    <div class="APListPre" <?php if($color_display['three'] == 1): ?>style="background-color: #0095d4;border: 2px solid #0095d4 !important;color: #fff !important;"<?php endif; ?>>
                        <i>3</i>
                    </div>
                </li>
            </ul>
        </div>
        <div class="AddShopping">
            <div class="PhoneTxt">
                <div class="PhoneMed">
                    <div class="PMedCon">
                        <div class="OverLay">
                            <div class="banner">
                                <div class="swiper-container">
                                    <div class="swiper-wrapper">
                                        <?php if(is_array($index_images)): foreach($index_images as $k=>$vo): ?><div class="swiper-slide index_demo_image_<?php echo ($k); ?>">
                                                <img src="<?php echo ($vo['image']); ?>" height="213px"/>
                                            </div><?php endforeach; endif; ?>
                                    </div>
                                    <div class="swiper-pagination"></div>
                                </div>
                            </div>
                            <div class="OverLayCon">
                                <div class="OverLayPrice" style="<?php if($details_index['index_buy_hide'] == 1): ?>display: block;<?php else: ?>display: none;<?php endif; if(!empty($details_index['index_price_text_color'])): ?>color:<?php echo ($details_index['index_price_text_color']); ?>;<?php else: ?>color:#cf294d;<?php endif; ?>"> <span>￥ <?php echo ($details_index['index_price']); ?></span></div>
                                <div class="OverLayBtn" style="margin: 15px auto 20px; <?php if($details_index['index_price_hide'] == 1): ?>display: block;<?php else: ?>display: none;<?php endif; ?> background-color:<?php if( !empty($details_index['index_buy_bg_color'])): echo ($details_index['index_buy_bg_color']); else: ?>#cf294d<?php endif; ?>; color: <?php if( !empty($details_index['index_buy_text_color'])): echo ($details_index['index_buy_text_color']); else: ?>#fff<?php endif; ?>;">立即购买</div>
                            </div>
                            <div class="ImgItem">
                                <?php if(!empty($images_text)): if(is_array($images_text)): foreach($images_text as $key=>$vo): if($vo['typeid'] == 1): ?><div class="item-line1 exhibition_id">
                                                <?php if(is_array($vo['images'])): foreach($vo['images'] as $key=>$v): ?><div class="line1-img">
                                                        <img src="<?php echo ($v['image']); ?>">
                                                    </div><?php endforeach; endif; ?>
                                            </div>
                                            <?php else: ?>
                                            <div class="exhibition_id" id="snow-container-<?php echo ($vo['num']); ?>"><?php echo ($vo['text']); ?></div><?php endif; endforeach; endif; ?>
                                    <?php else: ?>
                                    <div class="ImgItem">
                                        <div class="item-line1 exhibition_id"></div>
                                    </div><?php endif; ?>
                            </div>
                            <div class="ToDan">填写订单</div>
                            <div class="LineOver">
                                <div class="RadioDan">
                                    <ul>
                                        <?php if(is_array($package_data)): foreach($package_data as $k=>$data): ?><li><span class="<?php if($k == 0): ?>RadioDanShow<?php else: ?>RadioDanNone<?php endif; ?>"></span><?php echo ($data['package_name']); ?></li><?php endforeach; endif; ?>
                                    </ul>
                                </div>
                                <?php if(is_array($package_data[0]['product_list'])): foreach($package_data[0]['product_list'] as $k=>$data): ?><div class="NameMain">
                                        <div class="item-group">
                                            <p class="title"><?php echo ($data['product_name']); ?></p>
                                            <?php if(is_array($data['attribute_name_list'])): foreach($data['attribute_name_list'] as $k=>$vo): ?><p class="sub-title"><i class="rod">*</i><?php echo ($vo['attribute_name']); ?></p>
                                                <ul class="radio-btn-group">
                                                    <?php if(is_array($vo['attribute_val_list'])): foreach($vo['attribute_val_list'] as $k=>$v): ?><li><?php echo ($v['attribute_val']); ?></li><?php endforeach; endif; ?>
                                                </ul><?php endforeach; endif; ?>
                                        </div>
                                    </div><?php endforeach; endif; ?>
                                <div class="NameMain_s2">
                                    <div class="count"><i class="rod">*</i><span>数量</span></div>
                                    <div class="PriceTotal">
                                        <i class="JumpPrice active">-</i>
                                        <input type="text" readonly="readonly" name="PTotal" class="PTotal" value="1"/>
                                        <i class="NumPrice">+</i>

                                        <div class="NowPrice">
                                            应付金额： <span class="rod">￥ <?php echo ($package_data[0]['package_price']); ?></span>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <div class="PriceForm">
                                <form>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>姓名</span>
                                        <label>
                                            <input type="text" name="PriceName" class="PriceName"/>
                                        </label>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>手机</span>
                                        <label>
                                            <input type="text" name="PriceTels" class="PriceTels"/>
                                        </label>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>省份</span>

                                        <div class="PriceSave">
                                            <div class="SaveText" value="1">北京</div>
                                            <div class="SaveTextCon" alt="1">
                                                <ul>
                                                    <?php if(is_array($city_area)): foreach($city_area as $key=>$vo): ?><li value="<?php echo ($vo['id']); ?>"><?php echo ($vo['name']); ?></li><?php endforeach; endif; ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>城市</span>

                                        <div class="PriceSave">
                                            <div class="SaveText CityText" value="2">北京市</div>
                                            <div class="SaveTextCon" alt="2">
                                                <ul class="city">
                                                    <?php if(is_array($city_area[0]['city_list'])): foreach($city_area[0]['city_list'] as $key=>$vo): ?><li value="<?php echo ($vo['id']); ?>"><?php echo ($vo['name']); ?></li><?php endforeach; endif; ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>区域</span>

                                        <div class="PriceSave">
                                            <div class="SaveText AddrText" value="3">东城区</div>
                                            <div class="SaveTextCon">
                                                <ul class="county">
                                                    <?php if(is_array($city_area[0]['city_list'][0]['county_list'])): foreach($city_area[0]['city_list'][0]['county_list'] as $key=>$vo): ?><li value="<?php echo ($vo['id']); ?>"><?php echo ($vo['name']); ?></li><?php endforeach; endif; ?>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>地址</span>
                                        <label>
                                            <input type="text" name="PriceAddr" class="PriceAddr"/>
                                        </label>
                                    </div>
                                    <div class="PriceLabel">
                                        <span><i class="rod">*</i>付款</span>

                                        <div class="PriceNow">货到付款 </div>
                                    </div>
                                    <div class="PriceLabel">
                                        <span>留言</span>
                                        <label>
                                            <textarea name="PriceLY" class="PriceLY" id="PriceLY" rows="3"></textarea>
                                        </label>
                                    </div>
                                </form>
                            </div>
                            <div class="PriceBtns">
                                <button type="button" class="PriceBtn">提交订单</button>
                            </div>
                            <div class="CustomerTels">售后电话： <em><?php echo ($addpage_info['as_phone']); ?></em></div>
                        </div>
                        <a href="##" class="TelsQQ" <?php if($details_button['button_qq_hide'] == 1): ?>style="display: block;"<?php else: ?>style="display: none;"<?php endif; ?>></a>

                        <div class="PreviewBtnList">
                            <ul>
                                <li <?php if($details_button['button_phone_hide'] == 1): ?>style="display: inline-block;"<?php else: ?>style="display: none;"<?php endif; ?>><a href="##">电话咨询</a></li>
                                <li <?php if($details_button['button_sms_hide'] == 1): ?>style="display: inline-block;"<?php else: ?>style="display: none;"<?php endif; ?>><a href="##">短信订购</a></li>
                                <li <?php if($details_button['button_buy_hide'] == 1): ?>style="display: inline-block;"<?php else: ?>style="display: none;"<?php endif; ?>><a href="##">立即购买</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="PhoneContent">
                    <div class="InstallList">
                        <div>
                            <div class="InstallBg"></div>
                            <ul>
                                <li class="active">首图设置</li>
                                <li>图文设置</li>
                                <li>按钮设置</li>
                            </ul>
                        </div>
                    </div>
                    <div style="display: block" class="InstallMain">
                        <div class="TopImg">
                            <em>上传首图</em>最多可添加6张图片（每张大小不超过2M）用于轮播展示，建议上传的图片比例一致，宽度不小于320px
                        </div>
                        <div class="UploadImg details_index">
                            <?php if(is_array($index_images)): foreach($index_images as $k=>$vo): ?><div class="StorageImg" order="<?php echo ($k); ?>"><img src="<?php echo ($vo['image']); ?>"/></div><?php endforeach; endif; ?>
                            <div alt="6" class="shareImage FilImgRea"
                            <?php if(count($index_images) >= 6): ?>style="display: none;"<?php endif; ?>
                            >
                        </div>
                    </div>
                    <div class="BannerStep">
                        <span class="span1">轮播速度</span>

                        <div class="RangeMain">
                            <input type="range" name="RangeNum" step="1" class="RangeNum" value="<?php if(!empty($details_index['index_spee_number'])): echo ($details_index['index_spee_number']); else: ?>0<?php endif; ?>" min="0" max="15"/>
                            <span class="span2"><i class="index_spee_number">
                            <?php if(!empty($details_index['index_spee_number'])): echo ($details_index['index_spee_number']); else: ?>0<?php endif; ?>
                            </i><em>S</em><b>手动播放</b></span>
                            <i class="hen"></i>
                        </div>
                    </div>
                    <div class="InstallItem">
                        <div class="ItemNav">按钮设置</div>
                        <div class="InstallItemList">
                            <ul>
                                <li class="title">
                                    <div style="width: 15%">类型</div>
                                    <div style="width: 25%">字段</div>
                                    <div style="width: 15%">背景颜色</div>
                                    <div style="width: 15%">文本颜色</div>
                                    <div style="width: 15%">高度设置</div>
                                    <div style="width: 15%">显示</div>
                                </li>
                                <li style="border-bottom:none;">
                                    <div style="width: 15%">立即购买</div>
                                    <div style="width: 25%">
                                        <input type="text" name="index_buy_name" class="ljgm" value="<?php if(!empty($details_index['index_buy_name'])): echo ($details_index['index_buy_name']); else: ?>立即购买<?php endif; ?>" maxlength="10"/>

                                        <div class="RexExpsMsg">字段不能为空</div>
                                    </div>
                                    <div style="width: 15%">
                                        <div class="ColorMain">
                                            <div class="color-box color-box1 index_buy_bg_color" style="background-color:<?php if( !empty($details_index['index_buy_bg_color'])): echo ($details_index['index_buy_bg_color']); else: ?>#cf294d<?php endif; ?>;">
                                        </div>
                                    </div>
                        </div>
                        <div style="width: 15%">
                            <div class="ColorMain">
                                <div class="color-box color-box2 index_buy_text_color" style="background-color: <?php if( !empty($details_index['index_buy_text_color'])): echo ($details_index['index_buy_text_color']); else: ?>#fff<?php endif; ?>;">
                            </div>
                        </div>
                    </div>
                    <div style="width: 15%">
                        <div class="PXInstall">
                            <div class="PXStorage index_buy_height"
                                 value="<?php echo ($details_index['index_buy_height']); ?>">
                                <?php if(!empty($details_index['index_buy_height'])): echo ($details_index['index_buy_height']); ?>
                                    <?php else: ?>
                                    45<?php endif; ?>
                                px
                            </div>
                            <div class="PXSlider">
                                <ul>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 36): ?>class="active"<?php endif; ?>
                                    value="36">36px
                                    </li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 38): ?>class="active"<?php endif; ?>
                                    value="38">38px</li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 40): ?>class="active"<?php endif; ?>
                                    value="40">40px</li>
                                    <li
                                    <?php if(($details_index['index_buy_height'] == 42) OR empty($details_index['index_buy_height'])): ?>class="active"<?php endif; ?>
                                    value="42">42px</li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 44): ?>class="active"<?php endif; ?>
                                    value="44">44px</li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 46): ?>class="active"<?php endif; ?>
                                    value="46">46px</li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 48): ?>class="active"<?php endif; ?>
                                    value="48">48px</li>
                                    <li
                                    <?php if($details_index['index_buy_height'] == 50): ?>class="active"<?php endif; ?>
                                    value="50">50px</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div style="width: 15%">
                        <?php if($details_index['index_buy_hide'] == 1): ?><div class="OnOff onoff1 index_buy_hide acc" defort="false" alt="1" validate="1">
                                <span class="span1">显示</span>
                                <span class="clicle acc"></span>
                                <span class="span2 acc">隐藏</span>
                            </div>
                            <?php else: ?>
                            <div class="OnOff onoff1 index_buy_hide" defort="false" alt="0" validate="0">
                                <span class="span1 acc">显示</span>
                                <span class="clicle"></span>
                                <span class="span2">隐藏</span>
                            </div><?php endif; ?>
                    </div>
                    </li>
                    <li style="border-bottom:none;">
                        <div style="width: 15%">价格</div>
                        <div style="width: 25%">
                            <input type="text" name="index_price" class="jg" value="<?php echo ($details_index['index_price']); ?>" maxlength="10"/>

                            <div class="RexExpsMsg">格式错误</div>
                        </div>
                        <div style="width: 15%">-</div>
                        <div style="width: 15%">
                            <div class="ColorMain">
                                <div class="color-box color-box3 index_price_text_color" style="background-color: <?php if(!empty($details_index['index_price_text_color'])): echo ($details_index['index_price_text_color']); else: ?>#cf294d<?php endif; ?>;">
                            </div>
                        </div>
                </div>
                <div style="width: 15%"></div>
                <div style="width: 15%">
                    <?php if($details_index['index_buy_hide'] == 1): ?><div class="OnOff onoff2 index_price_hide acc" defort="false" alt="1" validate="1">
                            <span class="span1">显示</span>
                            <span class="clicle acc"></span>
                            <span class="span2 acc">隐藏</span>
                        </div>
                        <?php else: ?>
                        <div class="OnOff onoff2 index_price_hide" defort="false" alt="0" validate="0">
                            <span class="span1 acc">显示</span>
                            <span class="clicle"></span>
                            <span class="span2">隐藏</span>
                        </div><?php endif; ?>
                </div>
                </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="InstallMain InstallMainOver">
        <div class="AppendImgTxt">
            <?php if(!empty($images_text)): if(is_array($images_text)): foreach($images_text as $k=>$vo): if($vo['typeid'] == 1): ?><div class="InstallMainS2">
                            <div class="TopImg">
                                <em>图片</em>最多添加9张图片，超过不能成功上传，图片大小不能超过2M
                            </div>
                            <div class="UploadImg image_set">
                                <?php if(is_array($vo['images'])): foreach($vo['images'] as $key=>$v): ?><div class="StorageImg"><img src="<?php echo ($v['image']); ?>"></div><?php endforeach; endif; ?>
                                <div alt="9" class="shareImage FilImgReas FilImgRea_<?php echo ($vo['num']); ?>" <?php if(count($vo['images']) >= 9): ?>style="display: none;"<?php endif; ?>>
                                </div>
                                <div class="DeleteImg">删除</div>
                            </div>
                        </div>
                        <?php else: ?>
                        <div class="InstallMainS2">
                            <div class="standalone-container">
                                <div class="snow-container snow-container-<?php echo ($vo['num']); ?>"><?php echo ($vo['text']); ?></div>
                            </div>
                            <div class="DeleteImg">删除</div>
                        </div><?php endif; endforeach; endif; ?>
                <?php else: ?>
                <div class="InstallMainS2">
                    <div class="TopImg">
                        <em>图片</em>最多添加9张图片，超过不能成功上传，图片大小不能超过2M
                    </div>
                    <div class="UploadImg">
                        <div alt="9" class="shareImage FilImgReas FilImgRea_0">
                        </div>
                        <div class="DeleteImg">删除</div>
                    </div>
                </div><?php endif; ?>
        </div>
    <div class="AppendIT">
        <div class="ConcatImg" alt="<?php if(!empty($img_num)): echo ($img_num); else: ?>1<?php endif; ?>">添加图片</div>
        <div class="ConcatTxt" alt="<?php if(!empty($text_num)): echo ($text_num); else: ?>1<?php endif; ?>">添加文字</div>
    </div>
</div>
<div class="InstallMain">
    <div class="ClickStyle">
        <div class="InstallItem">
            <div class="ItemNav">按钮设置</div>
            <div class="InstallItemList">
                <ul>
                    <li class="title">
                        <div style="width: 15%">类型</div>
                        <div style="width: 25%">字段</div>
                        <div style="width: 30%">填写号码</div>
                        <div style="width: 15%">高度设置</div>
                        <div style="width: 15%">显示</div>
                    </li>
                    <li>
                        <div style="width: 15%">提交订单</div>
                        <div style="width: 25%">
                            <input type="text" maxlength="10" name="button_form_name" class="tjdd" value="<?php if(!empty($details_button['button_form_name'])): echo ($details_button['button_form_name']); else: ?>提交订单<?php endif; ?>"/>
                        </div>
                        <div style="width: 30%">-</div>
                        <div style="width: 15%">
                            <div class="PXInstall">
                                <div class="PXStorage button_form_height" value="<?php if( !empty($details_button['button_form_height'])): echo ($details_button['button_form_height']); else: ?>46<?php endif; ?>">
                                <?php if(!empty($details_button['button_form_height'])): echo ($details_button['button_form_height']); else: ?>46<?php endif; ?>px
                            </div>
                <div class="PXSlider place_order" style="height:<?php if(!empty($details_button['button_form_height'])): echo ($details_button['button_form_height']); else: ?>46<?php endif; ?>";>
                 <ul>
                    <li <?php if($details_button['button_form_height'] == 36): ?>class="active"<?php endif; ?> value="36">36px</li>
                    <li <?php if($details_button['button_form_height'] == 38): ?>class="active"<?php endif; ?> value="38">38px</li>
                    <li <?php if($details_button['button_form_height'] == 40): ?>class="active"<?php endif; ?> value="40">40px</li>
                    <li <?php if($details_button['button_form_height'] == 42): ?>class="active"<?php endif; ?> value="42">42px</li>
                    <li <?php if($details_button['button_form_height'] == 44): ?>class="active"<?php endif; ?> value="44">44px</li>
                    <li <?php if(($details_button['button_form_height'] == 46) OR empty($details_button['button_form_height'])): ?>class="active"<?php endif; ?> value="46">46px</li>
                    <li <?php if($details_button['button_form_height'] == 48): ?>class="active"<?php endif; ?> value="48">48px</li>
                    <li <?php if($details_button['button_form_height'] == 50): ?>class="active"<?php endif; ?> value="50">50px</li>
                </ul>
            </div>
        </div>
    </div>
    <div style="width: 15%">-</div>
    </li>
    <li style="border-bottom:none;">
        <div style="width: 15%">电话咨询</div>
        <div style="width: 25%">
            <input type="text" maxlength="10" name="button_phone_name" class="dhzx" value="<?php if( !empty($details_button['button_phone_name'])): echo ($details_button['button_phone_name']); else: ?>电话咨询<?php endif; ?>"/>
        </div>
        <div style="width: 30%">
            <input type="text" name="button_phone_number" class="hm1" placeholder="请输入号码" value="<?php echo ($details_button['button_phone_number']); ?>"/>
             <div class="RexExpsMsg">格式错误</div>
        </div>
        <div style="width: 15%">-</div>
        <div style="width: 15%">
            <?php if($details_button['button_phone_hide'] == 1): ?><div class="OnOff onoff3 button_phone_hide acc" defort="false" alt="1" validate="1">
                    <span class="span1">显示</span>
                    <span class="clicle acc"></span>
                    <span class="span2 acc">隐藏</span>
                </div>
                <?php else: ?>
                <div class="OnOff onoff3 button_phone_hide" defort="false" alt="0" validate="0">
                    <span class="span1 acc">显示</span>
                    <span class="clicle"></span>
                    <span class="span2">隐藏</span>
                </div><?php endif; ?>


        </div>
    </li>
    <li style="border-bottom:none;">
        <div style="width: 15%">短信订购</div>
        <div style="width: 25%">
            <input type="text" maxlength="10" name="button_sms_name" class="dxdg" value="<?php if( !empty($details_button['button_sms_name'])): echo ($details_button['button_sms_name']); else: ?>短信订购<?php endif; ?>"/>
        </div>
        <div style="width: 30%">
            <input type="text" name="button_sms_number" class="hm2" placeholder="请输入号码" value="<?php echo ($details_button['button_sms_number']); ?>"/>
            <div class="RexExpsMsg">格式错误</div>
        </div>
        <div style="width: 15%">-</div>
        <div style="width: 15%">
            <?php if($details_button['button_sms_hide'] == 1): ?><div class="OnOff onoff4 button_sms_hide acc" defort="false" alt="1" validate="1">
                    <span class="span1">显示</span>
                    <span class="clicle acc"></span>
                    <span class="span2 acc">隐藏</span>
                </div>
                <?php else: ?>
                <div class="OnOff onoff4 button_sms_hide" defort="false" alt="0" validate="0">
                    <span class="span1 acc">显示</span>
                    <span class="clicle"></span>
                    <span class="span2">隐藏</span>
                </div><?php endif; ?>
        </div>
    </li>
    <li style="border-bottom:none;">
        <div style="width: 15%">立即购买</div>
        <div style="width: 25%">
            <input type="text" maxlength="10" name="button_buy_name" class="ljgm" value="<?php if( !empty($details_button['button_buy_name'])): echo ($details_button['button_buy_name']); else: ?>立即购买<?php endif; ?>"/>
            <div class="RexExpsMsg">格式错误</div>
        </div>
        <div style="width: 30%">-</div>
        <div style="width: 15%">-</div>
        <div style="width: 15%">
            <?php if($details_button['button_buy_hide'] == 1): ?><div class="OnOff onoff5 button_buy_hide acc" defort="false" alt="1" validate="1">
                    <span class="span1">显示</span>
                    <span class="clicle acc"></span>
                    <span class="span2 acc">隐藏</span>
                </div>
                <?php else: ?>
                <div class="OnOff onoff5 button_buy_hide" defort="false" alt="0">
                    <span class="span1 acc">显示</span>
                    <span class="clicle"></span>
                    <span class="span2">隐藏</span>
                </div><?php endif; ?>
        </div>
    </li>
    </ul>
</div>
<div style="height: 20px"></div>
<div class="ItemNav">按钮样式</div>
<div class="CSMain">
    <div class="CSConColor">
        <span>背景颜色</span>
        <div class="ColorMain">
            <div class="color-box color-box6 button_bg_color" style="background-color: <?php if(!empty($details_button['button_bg_color'])): echo ($details_button['button_bg_color']); else: ?>#cf294d<?php endif; ?>">
        </div>
    </div>
</div>
<div class="CSConColor">
    <span>文字颜色</span>

    <div class="ColorMain">
        <div class="color-box color-box7 button_text_color" style="background-color: <?php if( !empty($details_button['button_bg_color'])): echo ($details_button['button_text_color']); else: ?>#ffffff<?php endif; ?>">
    </div>
</div>
</div>
</div>
<div class="ItemNav ItemNavS1">
    <span>QQ客服</span>
    <?php if($details_button['button_qq_hide'] == 1): ?><div class="OnOff onoff6 button_qq_hide acc" defort="false" alt="1">
            <span class="span1">显示</span>
            <span class="clicle acc"></span>
            <span class="span2 acc">隐藏</span>

        </div>
        <?php else: ?>
        <div class="OnOff onoff6 button_qq_hide" defort="false" alt="0">
            <span class="span1 acc">显示</span>
            <span class="clicle"></span>
            <span class="span2">隐藏</span>

        </div><?php endif; ?>
    <div style="line-height: 34px; display: inline-block; vertical-align: middle; padding-left: 20px; ">
        <?php if(!empty($qq)): ?><span style="color: #333; padding-right:5px; "><?php echo ($qq); ?></span>
            <a style="color: #33a9dd; font-weight: normal;" href="<?php echo U('Admin/Index/customer');?>" target="_blank">修改号码</a>
            <?php else: ?>
            <a style="color: #33a9dd; font-weight: normal;" href="<?php echo U('Admin/Index/customer');?>" target="_blank">设置号码</a><?php endif; ?>
    </div>
</div>
</div>
</div>
</div>
</div>
<div class="ThreeBtns">
    <input type="hidden" value="<?php echo ($id); ?>" name="id"/>
    <button type="button" class="BtnOne" alt="0" lang="0">保存</button>
    <button type="button" class="BtnTwo" alt="0" lang="2">预览</button>
    <button type="button" class="BtnOne" alt="1" lang="1">发布</button>
</div>
</div>
</div>
</div>
</div>
<div class="TxtBack">
    <div class="TxtBackBg"></div>
    <div class="TxtBackPre">
        <div class="TBTop">
            <span class="lf">提示</span>
            <i class="TBClose"></i>
        </div>
        <div class="TBText">发布后不能修改，确认发布？</div>
        <div class="TBYn">
            <div class="TBNo">取消</div>
            <div class="TBYes">确定</div>
        </div>
    </div>
</div>
<div class="tipsSave">
    <div class="saveTip">
        <div class="h3">提示</div>
        <div class="close"></div>
        <div class="saveContent">
            <p>请先保存当前页面信息</p>
        </div>
        <div class="saveBtns">
            <button type="button" class="saveTo">确定</button>
        </div>
    </div>
</div>
<script src="/Public/Admin/js/jquery-1.12.4.js"></script>
<script src="/Public/Admin/js/swiper.min.js"></script>
<script src="/Public/Admin/js/colpack.js"></script>
<script src="/Public/Admin/js/main.js"></script>
<script src="/Public/Admin/js/uploadify/jquery.Huploadify.js"></script>
<script src="/Public/Admin/quilleditor/quill.min.js?v=<?php echo time();?>"></script>
<script src="/Public/Admin/js/details.js?v=<?php echo time();?>"></script>

    <script type="text/javascript">
        //上传图片
        function upload_images(class_name){

            $('.'+class_name).Huploadify({
                buttonText: '请选择上传',
                auto: true,
                method: 'post',
                fileTypeExts: '*.jpg;*.png;*.gif;*.jpeg:*.JPG;*.PNG;*.GIF;*.JPEG',
                multi: true,
                simUploadLimit:6,
                formData: {key: 123456, key2: 'news'}, //banner是图片存放的目录
                fileSizeLimit: 2048,
                itemTemplate: '',//进度条，若显示进度条用 'itemTemp'
                showUploadedPercent: true,//是否实时显示上传的百分比，如20%
                showUploadedSize: true,
                removeTimeout: 1000,
                uploader: "/Admin/AddPage/UpdateImage",
                onUploadSuccess: function (file, data) {
                    var items = JSON.parse(data);

                    if(items.code == 200){
                        var _imgstr = items.msg;
                        var storageimg =
                                '<div class="StorageImg">' +
                                '<img src="' + _imgstr + '"/>' +
                                '</div>'

                        $('.'+class_name).before(storageimg);
                        $('.'+class_name).stop().show();

                        total = $('.'+class_name).parents(".UploadImg").find(".StorageImg").length;

                        var total_element = $('.'+class_name).parents(".InstallMainS2").index();

                        var html = '<div class="line1-img">';
                        html += '<img src="' + _imgstr + '">';
                        html += '</div>';

                        $(".exhibition_id").eq(total_element).append(html);

                        if(total >= 9){
                            $('.'+class_name).stop().hide();
                        }

                    }else{
                        $(".saveContent").find("p").html(list.msg);
                        $('.tipsSave').stop().fadeIn();
                        $('.saveTip').stop().animate({
                            top: '37' + '%',
                            opacity: '1'
                        }, 300);
                    }
                },
            });

        }
    <?php if(!empty($images_text)): if(is_array($images_text)): foreach($images_text as $k=>$vo): if($vo['typeid'] == 1): ?>upload_images("FilImgRea_<?php echo ($vo['num']); ?>");
            <?php else: ?>
            new Quill(".snow-container-<?php echo ($vo['num']); ?>", {placeholder: '请输入...', theme: 'snow'});<?php endif; endforeach; endif; ?>
    <?php else: ?>
        upload_images("FilImgRea_0");<?php endif; ?>
    </script>
</body>
</html>